tests: make deprecated functions not warn
authorBenjamin Otte <otte@redhat.com>
Wed, 1 May 2013 15:50:14 +0000 (17:50 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 1 May 2013 15:50:14 +0000 (17:50 +0200)
We still want to test them though.

tests/css/parser/test-css-parser.c

index ebe2b2bb5aa4faf7459c6a57e22fde3bc424e75a..1cf20379fc5d06aa3f607eb454e1e61c24418a4b 100644 (file)
@@ -301,6 +301,7 @@ main (int argc, char **argv)
 {
   gtk_test_init (&argc, &argv);
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   /* Add a bunch of properties so we can test that we parse them properly */
   gtk_style_properties_register_property (NULL,
                                           g_param_spec_boolean ("boolean-property",
@@ -320,18 +321,6 @@ main (int argc, char **argv)
                                                              "test uint properties",
                                                              0, G_MAXUINT, 0,
                                                              G_PARAM_READABLE));
-  gtk_style_properties_register_property (NULL,
-                                          g_param_spec_float ("float-property",
-                                                              "float property",
-                                                              "test float properties",
-                                                              -G_MAXFLOAT, G_MAXFLOAT, 0.0f,
-                                                              G_PARAM_READABLE));
-  gtk_style_properties_register_property (NULL,
-                                          g_param_spec_double ("double-property",
-                                                               "double property",
-                                                               "test double properties",
-                                                               -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
-                                                               G_PARAM_READABLE));
   gtk_style_properties_register_property (NULL,
                                           g_param_spec_string ("string-property",
                                                                "string property",
@@ -397,6 +386,7 @@ main (int argc, char **argv)
                                                               "test uint8 properties",
                                                               0, G_MAXUINT8, 0,
                                                               G_PARAM_READABLE));
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 
   if (argc < 2)
     {